/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wntransform.transformation;

/**
 *
 * @author SOJKA6
 */
public class LiteralObject {

    private String literal;
    
    private int sense;
    
    private String pos;

    public LiteralObject(String literal, int sense, String pos) {
        this.literal = literal;
        this.sense = sense;
		this.pos = pos;
    }

    public String getLiteral() {
        return literal;
    }

    public int getSense() {
        return sense;
    }

    public void setLiteral(String literal) {
        this.literal = literal;
    }

    public void setSense(int sense) {
        this.sense = sense;
    }

    public String getPos() {
        return pos;
    }

    public void setPos(String pos) {
        this.pos = pos;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final LiteralObject other = (LiteralObject) obj;
        if ((this.literal == null) ? (other.literal != null) : !this.literal.equals(other.literal)) {
            return false;
        }
        if (this.sense != other.sense) {
            return false;
        }
        if ((this.pos == null) ? (other.pos != null) : !this.pos.equals(other.pos)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.literal != null ? this.literal.hashCode() : 0);
        hash = 67 * hash + this.sense;
        hash = 67 * hash + (this.pos != null ? this.pos.hashCode() : 0);
        return hash;
    }

    
    
}
